package Eclass.Exam;

import java.util.List;
import java.util.Map;

import org.apache.struts.action.ActionForm;

public class ExamForm extends ActionForm{
	
	private String task;
	
	public String getTask() {
		return task;
	}

	public void setTask(String task) {
		this.task = task;
	}
	
	//================ EXAM ==========================
	private boolean doExam;
	private int currentQuestion;
	private int totalQuestion;
	private int batchClassId;
	private int examPrepId;
	private Double result;
	
	// soal
	private String question;
	private List optionOfAnswer;
	private List uanswerQuestion;
	private int noOfUnaswerQuestion;
	private String[] answer;
	private ExamModel examModel = new ExamModel(); // nampung question, answer, userId, examPrepId, no

	public boolean isDoExam() {
		return doExam;
	}

	public void setDoExam(boolean doExam) {
		this.doExam = doExam;
	}

	public int getCurrentQuestion() {
		return currentQuestion;
	}

	public void setCurrentQuestion(int currentQuestion) {
		this.currentQuestion = currentQuestion;
	}

	public int getTotalQuestion() {
		return totalQuestion;
	}

	public void setTotalQuestion(int totalQuestion) {
		this.totalQuestion = totalQuestion;
	}

	public int getBatchClassId() {
		return batchClassId;
	}

	public void setBatchClassId(int batchClassId) {
		this.batchClassId = batchClassId;
	}

	public int getExamPrepId() {
		return examPrepId;
	}

	public void setExamPrepId(int examPrepId) {
		this.examPrepId = examPrepId;
	}

	

	public List<Map> getOptionOfAnswer() {
		return optionOfAnswer;
	}

	public void setOptionOfAnswer(List<Map> optionOfAnswer) {
		this.optionOfAnswer = optionOfAnswer;
	}

	public String[] getAnswer() {
		return answer;
	}

	public void setAnswer(String[] answer) {
		this.answer = answer;
	}

	public List getUanswerQuestion() {
		return uanswerQuestion;
	}

	public void setUanswerQuestion(List uanswerQuestion) {
		this.uanswerQuestion = uanswerQuestion;
	}

	public int getNoOfUnaswerQuestion() {
		return noOfUnaswerQuestion;
	}

	public void setNoOfUnaswerQuestion(int noOfUnaswerQuestion) {
		this.noOfUnaswerQuestion = noOfUnaswerQuestion;
	}

	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public ExamModel getExamModel() {
		return examModel;
	}

	public void setExamModel(ExamModel examModel) {
		this.examModel = examModel;
	}

	
	// ujian
	private ExamModel listUjian = new ExamModel();
	private String timeRemaining;
	
	public ExamModel getListUjian() {
		return listUjian;
	}

	public void setListUjian(ExamModel listUjian) {
		this.listUjian = listUjian;
	}

	public String getTimeRemaining() {
		return timeRemaining;
	}

	public void setTimeRemaining(String timeRemaining) {
		this.timeRemaining = timeRemaining;
	}

	public Double getResult() {
		return result;
	}

	public void setResult(Double result) {
		this.result = result;
	}

}
